package com.cskaoyan.controller.admin.system;

import com.cskaoyan.bean.MarketLog;
import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.service.admin.system.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author erdonc
 * @date 2022/9/8 19:17
 * @description: TODO 请求网址: http://182.92.235.201:8083/admin/log/list
 */
@RestController
@RequestMapping("admin/log")
public class LogController {
    @Autowired
    LogService logService;

    @RequestMapping("list")
    public BaseRespVo list(BasePageInfo info, String name) {
        CommonData<MarketLog> marketLog = logService.list(info, name);
        return BaseRespVo.ok(marketLog);
    }
}

